KERNELDIR = /home/john/u_linux/linux-3.0-fs4412_v7
PWD	= $(shell pwd)

obj-m += led_arm.o

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
	arm-none-linux-gnueabi-gcc led_app.c -o app
install:
	sudo cp *.ko app /source/rootfs/home/
clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
	rm app

